Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Oct 4, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the getUser function from the thirdweb SDK to support querying user details by external wallet address and adding documentation updates to reflect these changes.

Detailed summary

  • Added support for querying user details via externalWalletAddress.
  • Updated getUser function parameters to include externalWalletAddress.
  • Modified function documentation to clarify query options.
  • Updated user details guide to include examples for externalWalletAddress.
  • Revised curl command examples to reflect new querying capabilities.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 8:04pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 8:04pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 8:04pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 8:04pm

@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2024

🦋 Changeset detected

Latest commit: 0f6b881

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 4, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@ElasticBottle ElasticBottle changed the title docs: update fetching user details endpoint to include details for ec… docs: update fetching user details endpoint for ecosystems Oct 4, 2024
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Oct 4, 2024
- `walletAddress`: The user's wallet address that thirdweb has generated for them
- `email`: The user's email address
- `phone`: The user's phone number
- `extenalWalletAddress`: The user's wallet address that used to login via SIWE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter extenalWalletAddress contains a typo. It should be corrected to externalWalletAddress for accuracy and consistency. This change will ensure that users can properly reference this parameter when querying user details for those who have logged in via SIWE.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@vercel vercel bot temporarily deployed to Preview – thirdweb-www October 4, 2024 04:41 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 4, 2024 04:41 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 4, 2024 04:41 Inactive
@codecov
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 47.60%. Comparing base (4dee169) to head (0f6b881).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../thirdweb/src/wallets/in-app/core/users/getUser.ts 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4918      +/-   ##
==========================================
- Coverage   47.61%   47.60%   -0.02%     
==========================================
  Files        1057     1057              
  Lines       57224    57228       +4     
  Branches     3924     3923       -1     
==========================================
- Hits        27247    27241       -6     
- Misses      29288    29298      +10     
  Partials      689      689              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 4dee169
packages 43.35% <0.00%> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
.../thirdweb/src/wallets/in-app/core/users/getUser.ts 5.26% <0.00%> (-0.40%) ⬇️

... and 3 files with indirect coverage changes

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanna update the SDK function as well?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.01 KB (+0.12% 🔺) 841 ms (+0.12% 🔺) 434 ms (+57.27% 🔺) 1.3 s
thirdweb (cjs) 101.75 KB (+0.07% 🔺) 2.1 s (+0.07% 🔺) 742 ms (+29.36% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 120 ms (+196.23% 🔺) 216 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 22 ms (+111.58% 🔺) 32 ms
thirdweb/react (minimal + tree-shaking) 17.23 KB (0%) 345 ms (0%) 110 ms (+104.96% 🔺) 454 ms

...(ecosystem?.id ? { "x-ecosystem-id": ecosystem.id } : {}),
...(ecosystem?.partnerId
? { "x-ecosystem-partner-id": ecosystem.partnerId }
: {}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont need to do this! just pass ecosystem to getClientFetch :)

actually just did it in my other PR, though i didn't add externalWalletAddress support. just merge my change and you'll get the headers for free

@joaquim-verges joaquim-verges added the merge-queue Adds the pull request to Graphite's merge queue. label Oct 4, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 4, 2024

Merge activity

  • Oct 4, 3:52 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 4, 3:52 PM EDT: joaquim-verges added this pull request to the Graphite merge queue.
  • Oct 4, 3:58 PM EDT: joaquim-verges merged this pull request with the Graphite merge queue.

joaquim-verges pushed a commit that referenced this pull request Oct 4, 2024
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `getUser` functionality in the `thirdweb` SDK by adding support for querying user details via an external wallet address and ecosystem wallet details.

### Detailed summary
- Added functionality to query user details using `externalWalletAddress`.
- Updated documentation for `getUser` to reflect new parameters.
- Modified examples to include querying by `externalWalletAddress`.
- Enhanced user guide to include new querying options.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@joaquim-verges joaquim-verges force-pushed the winston/update-user-details-doc-to-include-ecosystem branch from 156cc11 to 77d0c13 Compare October 4, 2024 19:53
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `getUser` functionality in the `thirdweb` SDK by adding support for querying user details via an external wallet address and ecosystem identifiers.

### Detailed summary
- Added support for querying user details using `externalWalletAddress` in `getUser`.
- Updated documentation for `getUser` to include `externalWalletAddress` as a query parameter.
- Modified examples in the documentation to demonstrate querying with `externalWalletAddress`.
- Updated user detail query parameters in documentation to reflect new options.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants